<template>
  <div class="">
    登录页面
    <button @click="login">登录</button>
  </div>
</template>

<script>
var self;
export default {
  name: "",
  data() {
    return {};
  },
  created() {
    self = this;
  },
  methods: {
    login() {
      this.$store.commit("SET_TOKEN", "abcdef");
      this.$router.push({ path: "/" });
    }
  }
};
</script>
<style scoped lang="scss">
</style>
